a7a88329a31d9400a238446ba040372576c87ffb,tests/http/src/test/java/org/mule/test/module/http/functional/requester/HttpRequestOutboundPartsTestCase.java,HttpRequestOutboundPartsTestCase,partsCustomContentType,#,92
Before Change
addPartToSend("part1", "Contents 1", TEXT);
addPartToSend("part2", "Contents 2", HTML);
flowRunner("requestFlow").withPayload(TEST_MESSAGE).withFlowVariable(PARTS, partsToSend)
.withMediaType(MediaType.parse("multipart/form-data2")).run();
assertThat(requestContentType, startsWith("multipart/form-data2; boundary="));
assertThat(parts.size(), equalTo(2));
After Change
PartAttributes part2Attributes = new PartAttributes("part2", null, content2.length(), emptyMap());
addPartToSend(content2, HTML, part2Attributes);
flowRunner("requestFlow").withPayload(getPayload())
.withMediaType(MediaType.parse("multipart/form-data2")).run();
assertThat(requestContentType, startsWith("multipart/form-data2; boundary="));
assertThat(parts.size(), equalTo(2));